package com.jt.factory;

import org.springframework.beans.factory.FactoryBean;

import java.util.Calendar;

/**
 * @outhor fufeixiang
 * @date 2021-04-21
 */
public class SpringFactory implements FactoryBean<Calendar> {

    @Override
    public Calendar getObject() throws Exception {

        return Calendar.getInstance();
    }

    @Override
    public Class<?> getObjectType() {
        return Calendar.class;
    }

}
